package com.codi.bus.core.service;

import com.codi.base.exception.BaseAppException;
import com.codi.bus.core.service.model.FundSimpleNetValueModel;
import com.codi.fundData.domain.FundNetValueCashe;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface FundNetValueBackService {
    void updateFundNetValue() throws BaseAppException;

    List<FundSimpleNetValueModel> getOneYearNetValueByFundCode(String fundCode) throws BaseAppException;

    List<FundSimpleNetValueModel> getOneMonthNetValueByFundCode(String fundCode) throws BaseAppException;

    List<FundSimpleNetValueModel> getThreeMonthNetValueByFundCode(String fundCode) throws BaseAppException;

    List<FundSimpleNetValueModel> getSixMonthNetValueByFundCode(String fundCode) throws BaseAppException;

    /**
     * 获取用户申购基金确认日期
     */
    List<Date> getTradeDay(String fundCode, Long userId);

    Page<Map<String, Object>> queryPages(Pageable pageable, String fundCode);

    Page<Map<String, Object>> queryMMPages(Pageable pageable, String fundCode);
}
